const { baseCode } = require("../tools/baseCode");
const { resData } = require("../tools/message");

/**
 * 生成物品ID
 */
exports.codeNum = (Router) => {
	Router.get("/codeNum", (req, res) => {
		const GoodsNum = "GD" + (Date.now() - baseCode);
		resData(GoodsNum, res, "获取");
	});
};
